package com.gimi.cloud.bbp.manage.consumer.service.sys;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.sys.SysAuthorityDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * 授权相关接口
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-01-30
 **/
public interface SysAuthorityService {

    /**
     *
     * @param request
     * @param response
     * @param authorityDTO
     * @throws Exception
     */
    Response roleMenus(HttpServletRequest request, HttpServletResponse response, SysAuthorityDTO authorityDTO) throws Exception;

    /**
     * 针对用户授权
     * @param request
     * @param response
     * @param sysAuthorityDTO 授权数据
     * @throws Exception
     */
    Response doAuth(HttpServletRequest request,HttpServletResponse response,SysAuthorityDTO sysAuthorityDTO) throws  Exception;
}
